/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package binh.packet;

import binh.CCommon;
import we.dispatcher.CPacketReader;
import we.dispatcher.packet.CReceivedPacket;

/**
 *
 * @author ADMIN
 */
public class CLoginRcvPacket extends CReceivedPacket
{

    public String Username;
    public String Pass;

    public CLoginRcvPacket(CPacketReader reader)
    {
        super(CCommon.MT_LOGIN, reader);
    }

    @Override
    protected void processData() throws Exception
    {
        Object[] objs = reader.readByProcessor(CCommonProcessor.UserReadProc, CCommonProcessor.PassReadProc);
        Username = (String) objs[0];
        Pass = (String) objs[1];
    }
}
